package com.itheima.health.service;

import com.itheima.health.pojo.Order;
import com.itheima.health.vo.OrderSubmitParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import com.itheima.health.pojo.OrderInfo;

import java.util.List;
import java.util.Map;

/**
 * 预约Service
 */
public interface OrderService {
    /**
     * 添加预约信息
     * @param order
     */
    void addOrder(Order order);

    /**
     * 添加会员id绑定会员信息
     * @param id
     */
    void addMemberId(Integer id);

    /**
     * 根据会员id查询order表单
     * @param id
     * @return
     */
    Order selectMemberId(Integer id);

    public List<Map<String,Object>> countBySetMeal();


    //根据id查询order
    Order selectById(Integer id);

    OrderInfo selectSetmealAndMemberByOrderId(Integer id);
}
